Adwaita: Fix some sidebar sizing
authornana-4 <hnmaigo@gmail.com>
Sun, 22 Nov 2020 03:24:04 +0000 (12:24 +0900)
committerJakub Steiner <jimmac@gmail.com>
Mon, 23 Nov 2020 09:51:58 +0000 (10:51 +0100)
- Don't set the sidebar padding twice.
- Add padding to the assistant sidebar directly, as it doesn't have
  .navigation-sidebar internally.
- Set missing margin to the sidebar separator.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

gtk/theme/Adwaita/_common.scss

index af54488a8078fafb6f38b0259307626df4334e06..d54d4dc81dd5c55d156cb0752989e49d5579b359 100644 (file)
@@ -186,9 +186,9 @@ label {
 
 window.assistant {
   .sidebar {
+    padding: $menu-margin;
     background-color: $base_color;
     border-top: 1px solid $borders_color;
-
   }
 
   &.csd .sidebar { border-top-style: none; }
@@ -3540,7 +3540,6 @@ filechooserbutton:drop(active) {
  * Sidebar *
  ***********/
 .sidebar {
-  padding: $menu-margin;
   border-style: none;
   background-color: mix($bg_color, $base_color, 50%);
 
@@ -3595,6 +3594,10 @@ separator.sidebar {
 .navigation-sidebar {
   padding: $menu-margin 0; //only vertical padding. horizontal row size would clip
 
+  > separator {
+    margin: $menu-margin;
+  }
+
   > row {
     min-height: 36px;
     padding: 0 8px;